#include<bits/stdc++.h>
using namespace std;
int a[1000010] , n;
int main(){
	freopen("height.in" , "r" , stdin);
	freopen("height.out" , "w" , stdout);
	cin >> n;
	for(int i = 1 ; i <= n ; i++){
		cin >> a[i];
	}
	sort(a + 1 , a + n + 1);
	for(int i = 1 ; i <= n ; i++){
		cout << a[i] << " ";
	}
	cout << endl;
	return 0;
}